<template>
  <div id="app">
    <Header/>
    <router-view></router-view>
    <!-- 组件根据路由的显示与隐藏: path判断/路由元信息-->
    <!-- <Footer v-show="$route.path === '/home' || $route.path === '/search'"/> -->
    <Footer v-show="$route.meta.show"/>
  </div>
</template>

<script>

import Header from "@/components/Header/Header.vue";
import Footer from "@/components/Footer/Footer.vue";

export default {
  name: 'App',
  components: {
    Header, Footer
  },
}
</script>

<style>
</style>
